* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
}
.header-fixed.hide-header {
  transform: translateY(-100%);
}
.top-bar {
    background-color: #333;
    color: white;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
}

.contact-info {
    margin-left: 50px;
}

.contact-info span {
    margin-right: 20px;
}

.user-actions {
    margin-right: 50px;
}

.user-actions a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
}

.logo-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.navigation {
    
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    padding: 15px 50px;
}

.nav-links {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    margin-right: 30px;
    font-weight: bold;
}
.nav-links li {
    display: inline-block;
    margin-right: 20px;
    position: relative;}

.nav-links a.active {
    color: #1e90ff;
}
.nav-links a:hover {
    color: #1e90ff;
}

.header__menu__dropdown {
    position: absolute;
    top: 100%; 
    left: 0;
    background-color: #222;
    padding: 5px 0;
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border-radius: 4px;
    white-space: nowrap; /* Ngăn không cho chữ xuống dòng */
    word-wrap: break-word;
}

.nav-links li:hover > .header__menu__dropdown {
    opacity: 1;
    visibility: visible;
}

.header__menu__dropdown li {
    display: block;
}

.header__menu__dropdown li a {
    color: #fff;
    padding: 10px 10px;
    width: 220px;
    display: block;
    text-decoration: none;
}

.header__menu__dropdown li a:hover {
    background-color: #333;
    color: #1e90ff;
}

.user-tools {
    display: flex;
    align-items: center;
}

.search-icon, .cart-icon {
    margin-left: 20px;
    font-size: 1.2rem;
    cursor: pointer;
}
.search-box {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 4px 10px;
    margin-right: 15px;
    transition: box-shadow 0.3s ease;
  }
  
  .search-box:hover {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
  }
  
  .search-box input {
    border: none;
    outline: none;
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 20px;
    flex: 1;
  }
  
  .search-box button {
    background-color: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 6px;
    color: #333;
    transition: color 0.2s ease;
  }
  
  .search-box button:hover {
    color: #007bff;
  }
  .add-to-cart {
    background-color: #ff6600; /* Màu cam nổi bật */
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .add-to-cart:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  }

  .add-to-cart:active {
    transform: scale(0.98);
  }

.cart-container {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #1e90ff;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
}

.banner-container {
    position: relative;
    width: 988px;
    height: 344px;
    margin: 200px auto 0;  /* top: 200px, left & right: auto, bottom: 0 */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 10px #ccc;
  }

  .banner-slide {
    display: none;
    width: 100%;
    transition: 0.5s;
  }

  .banner-slide img {
    width: 100%;
    height: 344px;
    border-radius: 15px;
    display: block;
  }

  .banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    display: none;
    z-index: 10;
    border-radius: 50%;
  }

  .banner-container:hover .banner-btn {
    display: block;
  }

  .prev-btn {
    left: 10px;
  }

  .next-btn {
    right: 10px;
  }

  .dot-container {
    text-align: center;
    margin-top: 10px;
  }

  .dot {
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
  }

  .active-dot {
    background-color: #333;
  }

  #noResultsMessage {
    text-align: center;
    margin: 20px auto;
    font-size: 18px;
    color: red;
    display: none; /* Ẩn đi mặc định */
}
  
  
.category-section {
    padding: 40px 50px;
    background-color: #fff;
}

.category-section h2 {
    font-size: 20px;
    margin-bottom: 25px;
    color: #555;
    font-weight: bold;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 30px 20px;
    justify-items: center;
    align-items: center;
}

.category-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.category-item img {
    width: 90px;
    height: 90px;
    border-radius: 30%;
    object-fit: cover;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.category-item p {
    font-size: 14px;
    color: #333;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-item:hover img {
    transform: scale(1.05);
}

/* product section */
.container {
  max-width: 1200px;
  padding: 0 15px;
  margin: 0 auto;
}

  
  .section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: bold;
    position: relative;
  }
  
  .section-title:after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: #333;
    margin: 10px auto;
  }
  
  .products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .product-section[data-category="Thời Trang Nam"] .products {
    display: flex;
    flex-direction: row; /* Hiển thị các sản phẩm theo chiều ngang */
    flex-wrap: wrap;
    gap: 20px;
}
  .product {
    position: relative;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  /* Hiệu ứng đổ bóng khi hover */
  .product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .product-image {
    background-color: #f5f5f5;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  
  .discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #0095ff;
    color: white;
    padding: 3px 6px;
    font-size: 12px;
    font-weight: bold;
  }
  
  .product-name {
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
    padding: 0 5px;
  }
  
  .product-price {
    font-size: 16px;
    font-weight: bold;
    color: #ff3b00;
    margin-right: 5px;
    padding: 0 5px;
  }
  
  .original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
  }
  .detail-button {
    display: none;
    position: absolute;
    top: 10px;        /* Đưa lên top */
    left: 10px;
    right: 10px;
    background-color: #007bff;
    color: white;
    text-align: center;
    padding: 8px 0;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    z-index: 10;
  }
  

  .product:hover .detail-button {
    display: block;
  }

  .detail-button:hover {
    background-color: #0056b3;
  }

  
  .view-all-btn {
    display: block;
    width: 150px;
    padding: 10px 15px;
    margin: 20px auto 40px;
    background-color: #333;
    color: white;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
  }
  
  .view-all-btn:hover {
    background-color: #555;
  }
  
  .back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }
  
  .back-to-top:hover {
    background-color: #555;
  }
  

/*footer*/
.site-footer {
    background-color: #fbfbfb;
    padding: 40px 0;
    border-top: 1px solid #e8e8e8;
    font-family: Arial, sans-serif;
}

.footer-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-col {
    flex: 1;
    padding: 0 15px;
    min-width: 200px;
}

.payment-shipping-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-heading {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: #333;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    font-size: 12px;
}

.footer-links a:hover {
    color: #ee4d2d;
}

.payment-methods, .shipping-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-row, .shipping-row {
    display: flex;
    gap: 10px;
}

.payment-row img, .shipping-row img {
    width: 50px;
    height: 30px;
    object-fit: contain;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 5px;
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links li {
    margin-bottom: 12px;
}

.social-links a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-links a:hover {
    color: #ee4d2d;
}

.footer-bottom {
    border-top: 1px solid #e8e8e8;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 12px;
    color: #888;
}

.countries {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.countries a {
    color: #555;
    text-decoration: none;
}

.countries a:hover {
    color: #ee4d2d;
}

.policies {
max-width: 1200px;
margin: 20px auto;
padding: 0 15px;
text-align: center;
font-size: 12px;
}

.policies a {
color: #555;
text-decoration: none;
margin: 0 5px;
}

.policies a:hover {
color: #ee4d2d;
}

.company-info {
max-width: 1200px;
margin: 20px auto 0;
padding: 0 15px;
text-align: center;
font-size: 12px;
color: #555;
line-height: 1.6;
}

.company-name {
margin-bottom: 10px;
}

.address {
margin-bottom: 10px;
}

.address a {
color: #ee4d2d;
text-decoration: none;
}

.manager {
margin-bottom: 10px;
}

.business-info {
margin-bottom: 10px;
}

.copyright-info {
margin-bottom: 20px;
}

/* PC Responsive */
/* Large screens (PC/Desktop) */
@media (min-width: 1200px) {
  .products {
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
  }

  .category-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 columns for categories */
  }

  .navigation {
    padding: 15px 50px; /* Keep the large padding for desktop */
  }

  .top-bar {
    flex-direction: row; /* Top bar content in a row */
  }

  .search-box input {
    font-size: 14px; /* Adjust input size for larger screens */
  }

  .banner-container {
    width: 80%; 
  }
}
.filtered-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin: auto;
}

.filtered-container .product {
  width: 230px;
  margin:auto; /* hoặc tuỳ chỉnh theo ý bạn */
}

/* Medium screens (Tablet: 768px to 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
  .products {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on tablet */
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns for categories */
  }

  .navigation {
    padding: 10px 40px; /* Reduce padding for tablet */
  }

  .top-bar {
    flex-direction: row; /* Keep the top bar as row */
    justify-content: space-between;
  }

  .logo-container {
    padding: 10px 0; /* Adjust logo container padding */
  }

  .search-box input {
    font-size: 14px; /* Slightly larger font on tablet */
  }

  .banner-container {
    width: 100%; /* Full width banner on tablets */
  }

  .nav-links li {
    margin-right: 15px; /* Adjust margin for nav links */
  }
}

/* Small screens (Mobile: 480px to 767px) */
@media (max-width: 767px) {
  .products {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for categories */
  }

  .navigation {
    padding: 10px 20px; /* Smaller padding on mobile */
  }

  .top-bar {
    flex-direction: column; /* Stack top bar items vertically */
    text-align: center; /* Center-align items */
  }

  .logo-container {
    padding: 15px 0; /* Adjust logo container padding */
  }

  .search-box input {
    font-size: 14px; /* Keep the same font size for input */
  }

  .banner-container {
    width: 100%; /* Full-width banner on mobile */
  }

  .banner-slide img {
    height: 200px; /* Adjust image height for mobile screens */
    object-fit: cover;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .nav-links li {
    margin-bottom: 10px; /* Add space between nav items */
  }

  .header__menu__dropdown {
    width: 100%; /* Full-width dropdown menu on mobile */
    left: 0; /* Align dropdown to the left */
  }

  .add-to-cart {
    padding: 10px 15px; /* Smaller padding for mobile buttons */
    font-size: 14px; /* Adjust font size for mobile */
  }

  .back-to-top {
    width: 35px;
    height: 35px;
    font-size: 14px; /* Make the back-to-top button smaller */
  }
}

/* Extra small screens (Mobile: 480px and below) */
@media (max-width: 480px) {
  .products {
    grid-template-columns: 1fr; /* 1 column for mobile */
  }

  .category-grid {
    grid-template-columns: 1fr; /* 1 column for categories */
  }

  .navigation {
    padding: 10px 15px; /* Smaller padding on smaller mobile */
  }

  .top-bar {
    flex-direction: column; /* Stack items in the top bar */
    text-align: center;
  }

  .search-box {
    flex: 1;
    margin-bottom: 10px; /* Add some space between the search box and other elements */
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .nav-links li {
    margin-bottom: 8px; /* Add space between nav items */
  }

  .logo-container {
    padding: 10px 0;
  }

  .add-to-cart {
    width: 100%; /* Full-width buttons on mobile */
  }

  .back-to-top {
    right: 15px; /* Adjust position of the back-to-top button */
    bottom: 15px;
  }
}
